/*
 * $Id*
 *
 * The test program 
 *
 */

void main (void)
{
	int a, b, i, j, k;

	// Problem 1
	// The following part excutes simple arithmetic/logical operation.
	a = 1;  
	b = -1; 
	if((a == b) & (a == -b)) 
		// MIPS machine has problem.
		printf("Problem 1 : There is something WRONG!!\n"); 
	else
		// Problem 1 is solved.
		printf("Problem 1 is solved!!\n");


	// Problem 2
	// The follow part calculates k = 1+2+3+4+5+6+7+8+9+10 = 55
	k = 0;
	for(i = 10; i > 0; i--){
		j = i;
		while(j > 0){
			k++;
			j--;
		}
	}
	if(k !=  55)
		// MIPS machine has problem.
                printf("Problem 2 : There is something WRONG!!\n");
	else
		// Problem 2 is solved.
		printf("Problem 2 is solved!!\n");

	exit (2);
}

